package com.dy.cloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName:
 * @Author: 仄言in
 * @Desctiption: (描述)
 * @Date: 2021/10/5 13:00
 * @Version 1.0 (版本)
 */
@RestController
public class RestNacosController {
    @Value("${server.port}")
    private String serverport;

    @GetMapping("/getport")
    public String getport() {
        return "端口号: "+serverport;
    }

}
